package com.vshop.service.impl;

import com.vshop.entity.comentity.Continent;
import com.vshop.mapper.ContinentMapper;
import com.vshop.service.ContinentService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class ContinentServiceImpl implements ContinentService {
    @Resource
    ContinentMapper continentMapper;

    @Override
    public List<Continent> queryAllContinent() {
        return continentMapper.queryAllContinent();
    }
}
